from django.conf.urls import url ,include
from rest_framework import routers
import api_views

router = routers.DefaultRouter()
router.register(r'posts', api_views.PostViewSet)
router.register(r'term', api_views.TermViewSet)
router.register(r'link', api_views.LinksViewSet)

urlpatterns = [
    url(r'^', include(router.urls)),
    url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework'))
]